package change;

import classification.PaymentClassification;
import classification.imp.CommissionedClassification;
import schedule.PaymentSchedule;
import schedule.imp.WeeklySchedule;

public class ChangeCommissionClassificationTransaction extends ChangeClassificationTransaction {

    private double newRate;
    private double newSalary;

    public ChangeCommissionClassificationTransaction(int empId, double newSalary, double newRate) {
        super(empId);
        this.newSalary = newSalary;
        this.newRate = newRate;
    }

    @Override
    public PaymentClassification getClassification() {
        return new CommissionedClassification(newSalary, newRate);
    }

    @Override
    public PaymentSchedule getPaymentSchedule() {
        return new WeeklySchedule();
    }
}
